from __future__ import annotations
from app.services.robot import FlexHttpClientMaintenance, FlexHttpClientHardware
from dataclasses import dataclass


@dataclass()
class FlexClientHandler:
    maintenance_client: FlexHttpClientMaintenance
    hardware_client: FlexHttpClientHardware

    @classmethod
    def build_client(cls, host_name: str) -> FlexClientHandler:
        return cls(
            maintenance_client=FlexHttpClientMaintenance(host_name),
            hardware_client = FlexHttpClientHardware(host_name)
        )